package com.bw.service;


import com.bw.bean.City;
import com.bw.dao.CityDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service
public class CityServiceImp implements CityService{
    @Autowired
    CityDao cityDao;
    @Override
    public List<City> findAll() {
        return cityDao.findAll();
    }

    @Override
    public List<Map> findMo(String cityName) {
        return cityDao.findMo(cityName);
    }

    @Override
    public List<City> findQu(int personNum, int personNum1) {
        return cityDao.findQu(personNum,personNum1);
    }

    @Override
    public int Sp(List<Integer> ids) {
        return cityDao.Sp(ids);
    }
}
